﻿using ApFramework.Core.Shared.Friendships;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.Shared.Services.Chat.Dto
{
    public class FriendModel : BindableBase
    {
        private bool isOnline;
        private int unreadMessageCount;

        public long FriendUserId { get; set; }

        public int? FriendTenantId { get; set; }

        public string FriendUserName { get; set; }

        public string FriendTenancyName { get; set; }

        public Guid? FriendProfilePictureId { get; set; }

        public int UnreadMessageCount
        {
            get { return unreadMessageCount; }
            set { unreadMessageCount = value; RaisePropertyChanged(); }
        }

        public bool IsOnline
        {
            get { return isOnline; }
            set { isOnline = value; RaisePropertyChanged(); }
        }

        public FriendshipState State { get; set; }

        public byte[] Photo { get; set; }
    }
}
